import {api} from "@/utils/request";

// 调用接口获取验证码
export const getCodeApi = () => {
    return api({
       url: "/sys/getCaptcha",
       method: "get"
    })
 
 }

// 用户登录
export const loginApi = (params: any) => {
    return api({
        url: "/sys/user/login",
        method: "post",
        data: params
    })
}

// 用户注册
export const registerApi = (params: any) => {
    return api({
        url: "/user/sys/register",
        method: "post",
        data: params
    })
}
// 获取用户信息

export const getSysUserInfoApi = () => {
return api({
    url: "/sys/user/getUserInfo",
    method: "get"
})
    
}





